@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-decoration: none;
    font-size: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: #ea2c32;
    background-image: url(../img/index/bg0.png);
    background-size: 100% 100%;
}

// 主页面
.web,
.sendLoveWeb {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden; // 主体
    .comtent {
        height: 90%;
        overflow: hidden;
        .com_one {
            margin: 0.2rem auto 0;
            text-align: center;
            .img {
                margin: auto;
                width: 5.32rem;
                height: 2.80rem;
                position: relative;
                img {
                    width: 5.32rem;
                    height: 2.80rem;
                }
                .jT {
                    position: absolute;
                    top: 40%;
                    right: 0%;
                    img {
                        width: 1.42rem;
                        height: 1.33rem;
                        animation-name: myJt;
                        animation-duration: 1s;
                        animation-iteration-count:infinite;
                        animation-play-state: running;
                        animation-timing-function: linear;
                        animation-direction: alternate-reverse;
                    }
                    @keyframes myJt {
                        0%{
                            transform: rotate(5deg) scale(1.1);
                        }50%{
                            transform: rotate(0deg) scale(1);
                        }100%{
                            transform: rotate(-5deg) scale(1.1);
                        }
                    }
                }
            }
        }
        .com_two {
            background: #f8f6e1;
            margin: 0.1rem auto 0;
            width: 5.15rem;
            height: 3.7rem;
            border: 1px solid #f4eb7f;
            border-radius: 0.1rem;
            .com_two_1 {
                height: 1.72rem;
                position: relative;
                overflow: hidden;
                p {
                    font-size: 0.2rem;
                    margin: 0.24rem 0 0 0.11rem;
                    font-weight: bold;
                }
                .recordBtn,
                .palyBtn {
                    width: 1.13rem;
                    height: 1.6rem;
                    position: absolute;
                    top: 5%;
                    left: 50%;
                    transform: translate(-50%, 0%);
                    text-align: center;
                    .iBtn {
                        background: #fff;
                        width: 1.13rem;
                        height: 1.13rem;
                        border: 5px solid #afaea3;
                        border-radius: 50%;
                        box-sizing: border-box;
                        position: relative;
                        .iBox {
                            width: 60%;
                            height: 60%;
                            background: #de2428;
                            border-radius: 50%;
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            text-align: center;
                            i {
                                font-size: 0.3rem;
                                color: #fff;
                                margin: 0 auto;
                                line-height: 200%;
                            }
                        }
                    }
                    button {
                        margin-top: 0.08rem;
                        background: #de2428;
                        width: 0.9rem;
                        height: 0.35rem;
                        border-radius: 0.05rem;
                        font-size: 0.16rem;
                        color: #fff;
                        line-height: 0.3rem;
                        border: none;
                        outline: none;
                    }
                }
            }
            .com_two_2 {
                width: 100%;
                height: 2rem;
                text-align: center;
                p {
                    text-align: left;
                    font-size: 0.2rem;
                    margin-left: 0.11rem;
                    font-weight: bold;
                }
                textarea {
                    margin-top: 0.05rem;
                    width: 4.65rem;
                    height: 1rem;
                    border-radius: 0.1rem;
                    border: 1px solid#dc3539;
                    outline: none;
                    font-size: 0.18rem;
                    padding: 0.1rem;
                    color: #ec788d;
                    box-sizing: border-box;
                    resize: none;
                    font-weight: bold;
                    text-indent: 2em;
                }
                button {
                    margin: 0.2rem auto 0;
                    display: block;
                    width: 1.72rem;
                    height: 0.35rem;
                    background: #f8f6e1;
                    color: #dc3539;
                    font-size: 0.18rem;
                    line-height: 0.35rem;
                    text-align: center;
                    border: 1px solid #dc3539;
                    border-radius: 0.05rem;
                    outline: none;
                    font-weight: bold;
                }
            }
        }
        .txt1 {
            width: 5.15rem;
            margin: 0.05rem auto 0;
            text-align: center;
            font-size: 0.16rem;
            color: #fff;
        }
        .com_three {
            background: #f8f6e1;
            margin: 0.1rem auto 0;
            width: 5.15rem;
            padding: 0.12rem;
            border: 1px solid #f4eb7f;
            border-radius: 0.1rem;
            p {
                width: 4.06rem;
                font-size: 0.16rem;
                line-height: 0.30rem;
                margin: 0.15rem auto 0;
                font-weight: bold;
            }
            button {
                margin: 0.2rem auto 0;
                display: block;
                width: 0.9rem;
                height: 0.35rem;
                background: #dc3539;
                color: #fff;
                font-size: 0.16rem;
                line-height: 0.3rem;
                text-align: center;
                border: 1px solid #dc3539;
                border-radius: 0.05rem;
                outline: none;
                font-weight: bold;
            }
        }
    } // 底部logo
    .footer {
        height: 10%;
        text-align: center;
        img {
            height: 0.52rem;
            width: 2.22rem;
            margin-top: 0.25rem;
        }
    }
    .generateIng {
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        position: fixed;
        top: 0;
        left: 0;
        display: none;
        .box {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 70%;
            border: 1px solid #e02d33;
            background: #e2cfcf;
            padding: 0.2rem 0;
            border-radius: 0.15rem;
            p {
                text-align: center;
                font-size: 0.5rem;
                line-height: 2rem;
                color: #e02d33;
                font-weight: bold;
                span {
                    font-size: 0.1rem;
                    letter-spacing: 0.1rem;
                    animation-name: myXin;
                    animation-duration: 1s;
                    animation-iteration-count: infinite;
                    animation-play-state: running;
                    animation-timing-function: ease-in-out;
                }
                span:nth-of-type(2) {
                    animation-delay: 0.2s;
                }
                span:nth-of-type(3) {
                    animation-delay: 0.4s;
                }
                @keyframes myXin {
                    0% {
                        opacity: 0;
                    }
                    50% {
                        opacity: 1;
                    }
                    100% {
                        opacity: 0;
                    }
                }
            }
            .i_down {
                position: absolute;
                top: -0.2rem;
                right: -0.2rem;
                width: 0.58rem;
                height: 0.58rem;
                border-radius: 50%;
                color: #fff;
                background: #404040;
                text-align: center;
                i {
                    font-size: 0.25rem;
                    line-height: 0.58rem;
                }
            }
        }
    }
}

//发送情书
.sendLoveWeb {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    text-align: center;
    .com_2 {
        margin: 1.3rem auto 0;
        position: relative;
        img {
            width: 4.02rem;
            height: 2.61rem;
            box-shadow: 0px 14px 38px 3px #00000063;
        }
        textarea {
            position: absolute;
            top: 31%;
            right: 50%;
            transform: translate(112%, 0%);
            resize: none;
            width: 1.46rem;
            height: 1rem;
            background: transparent;
            outline: none;
            font-size: 0.1rem;
            line-height: 0.26rem;
            color: #ec788d;
            font-weight: bold;
            text-indent: 2em;
            border: none;
        }
    }
    button {
        margin-top: 1rem;
        width: 1.84rem;
        height: 0.4rem;
        background: #fff;
        color: #dc3539;
        line-height: 0.4rem;
        text-align: center;
        font-size: 0.24rem;
        font-weight: bold;
        border: none;
        border-radius: 0.15rem;
        outline: none;
    }
    .sendBlack {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.7);
        display: none;
        .sendCom {
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            img {
                width: 1.19rem;
                height: 1.84rem;
                position: absolute;
                right: 0.4rem;
                top: 0.4rem;
            }
            .pB {
                margin: 2.5rem auto 0;
                p {
                    color: #fff;
                    font-size: 0.46rem;
                    font-weight: bold;
                    margin-top: 0.2rem;
                    text-align: center;
                }
            }
        }
    }
}